import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import router from './router'
import store from './store'
import wholeComponents from './components/index'

Vue.config.productionTip = false

import './styles/variables.scss';


import Toastr from 'vue-toastr';
// import 'vue-toastr/dist/vue-toastr.css';
import Print from 'vue-print-nb';
import API from '@/api.js'
let Base64 = require('js-base64').Base64;
Vue.prototype.$api = API;

//引入font-awesome
import 'font-awesome/css/font-awesome.css';
//引入iconfont
import './assets/css/iconfont/iconfont.css'

import i18n from './i18n'
import './utils/rem'

Vue.use(Print);
Vue.use(Toastr);
Vue.use(ElementUI);
Vue.use(Base64);
Vue.use(wholeComponents);


//Vue.use(QRCode);

new Vue({
  router,
  store,
  i18n,
  data: function () {
    return {
      adminToken: ''
    }
  },
  render: h => h(App)
}).$mount('#app')
